
package ;

class Backend 
{
    public static function main () 
    {
        var ctx = new haxe.remoting.Context();
        ctx.addObject("backend",new BackendAPI());
        if( haxe.remoting.HttpConnection.handleRequest(ctx) )
            return;
        // handle normal request
        php.Lib.print("This is a remoting server !");
        
    }   
}